package com.mornd.gulimall.ware.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mornd.gulimall.ware.entity.PurchaseDetail;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mornd
 * @since 2023-07-29
 */
public interface IPurchaseDetailService extends IService<PurchaseDetail> {

    IPage<PurchaseDetail> list(PurchaseDetail detail);

    /**
     * 合并整单
     * @param purchaseId
     * @param detailIds
     */
    Long merge(Long purchaseId, Long[] detailIds);
}
